package com.example.administrator.swredeem.adapter;

import com.example.administrator.swredeem.R;
import com.example.administrator.swredeem.beanClass.GongdanListBean;
import com.example.administrator.swredeem.beanClass.UserListBean;
import com.example.administrator.swredeem.view.recyclerview.BaseQuickAdapter;
import com.example.administrator.swredeem.view.recyclerview.BaseViewHolder;

import java.util.List;

public class AdapterGongdan extends BaseQuickAdapter<GongdanListBean.InfoBean> {

    public AdapterGongdan( List<GongdanListBean.InfoBean> data) {
        super(R.layout.item_gongdan, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, GongdanListBean.InfoBean item) {
        helper.setText(R.id.gdbh, "工单编号: "+item.getPkid());//工单编号
        helper.setText(R.id.gdlx, "工单类型: "+item.getTypevalue());//工单类型
        helper.setText(R.id.khnc, "客户名称: "+item.getUsername());//客户名称
        helper.setText(R.id.khbh, "客户编号: "+ item.getUserno());//客户编号
        helper.setText(R.id.lxfs, "联系方式: "+item.getMobile());//联系方式
        helper.setText(R.id.khsfzh, "客户身份证号 :"+item.getCertnum());//客户身份证号
        helper.setText(R.id.qy, "区域 :"+item.getRegionvalue());//区域
        helper.setText(R.id.khdz, "客户地址: "+item.getAddr());//客户地址
        helper.setText(R.id.gdfqsj, "工单发起时间: "+item.getCreateTime());//工单发起时间
    }
}
